import request from "@/request/request.js";
export const getCardData=()=>{
    return request({
        url: '/sysuserelectric/getUserCard',
        method: 'get'
    })
}
export const updateStatusById=(id,sta)=>{
    return request({
        url: '/sysuserelectric/status',
        method: 'put',
        params:{id:id,status:sta}
    })
}
export const delCard=(id)=>{
    return request({
        url: '/sysuserelectric/removeById',
        method: 'delete',
        params:{id:id}
    })
}
export const allCard=()=>{
    return request({
        url: '/syselectriccard/all',
        method: 'get'
    })
}
export const addCard=(str,num,juan)=>{
    return request({
        url: '/sysuserelectric/addCard',
        method: 'post',
        params:{
            str:str,
            num:num,
            juan:juan
        }
    })
}